@echo off
chcp 65001
setlocal

:: 设置Python路径(修改为实际路径)
set "PYTHON_PATH=%~dp0..\python\python.exe"

:: 检查Python是否存在
if not exist "%PYTHON_PATH%" (
    echo [错误] 找不到Python解释器: %PYTHON_PATH%
    pause
    exit /b 1
)

:: 设置环境变量供Python脚本使用
set "PYTHON_CMD=%PYTHON_PATH%"

:: 执行Python交互式shell
echo [信息] 正在启动Python交互式shell...
"%PYTHON_PATH%" "%~dp0install_insightface.py" "%PYTHON_PATH%"

pause